package main

import (
	"cas_central_server/conf"
	"cas_central_server/services"
	"fmt"

	"github.com/labstack/echo/v4"
	"github.com/labstack/echo/v4/middleware"
)

func main() {
	e := echo.New()
	e.Debug = true

	e.Use(middleware.Logger())
	// e.Use(middleware.Recover())

	services.RegisterAPIs(e)

	e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", conf.Config.WebServerPort)))
}
